@extends('home.template.personal')

@section('title','掏我喜欢')

@section('content')
<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-info">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">创建鱼塘</strong> / <small>Personal&nbsp;information</small></div>
						</div>
						<hr/>

						<?php if($user){ ?>
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">您已经创建了鱼塘快去管理鱼塘吧&nbsp;<br><br></strong>  <small><button class="am-btn am-btn-danger"><a href="/createrfish">管理鱼塘</a></button></small></div>
						</div>						
						
						
						<?php }else{ ?>
						<div class="info-main">
							<form class="am-form am-form-horizontal" action="/createfish" method="post" enctype="multipart/form-data" >
							<!-- <form class="am-form am-form-horizontal" action="#" method="post"> -->
								{{csrf_field()}}
								<div class="am-form-group">
									<label for="user-name2" class="am-form-label">鱼塘昵称</label>
									<div class="am-form-content">
										<input type="text" id="user-name2" name="name" placeholder="">

									</div>
								</div>

								<div class="am-form-group">
									<label for="user-name" class="am-form-label">鱼塘简介</label>
									<div class="am-form-content">
										<input type="text" id="user-name2" name="introduction" placeholder="">

									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-form-label">背景图片</label>
									<div class="am-form-content">
										<input type="file" id="user-name2" name="file" placeholder="">

									</div>
								</div>								
								<div class="am-form-group">
									<label for="user-birth" class="am-form-label">创建地点</label>
									<div class="am-form-content birth">
										<div class="birth-select">
											<select id='sheng'>

											</select>
											<em>省</em>
										</div>
										<div class="birth-select2">
											<select id='shi'>
											
											</select>
											<em>市</em></div>
										<div class="birth-select2">
											<select id='qu'>
												
											</select>
											<em>县</em></div>
									</div>
							
								</div>

								<div class="am-form-group">
									<label for="user-birth" class="am-form-label">鱼塘类别</label>
									<div class="am-form-content birth">
										<div class="birth-select">
											<select id="yi">
											</select>
										</div>
										<div class="birth-select2">
											<select id="er">
											</select>
											</div>
										<div class="birth-select2">
											<select i="san">
											</select>
											</div>
									</div>
									<input type="hidden" name='sheng' value='' id='addr1' />
									<input type="hidden" name='shi' value='' id='addr2' />
									<input type="hidden" name='qu' value='' id='addr3' />
								</div>								
								<div class="info-btn">
									<button class="am-btn am-btn-danger">创建鱼塘</button>
								</div>

							</form>
						</div>
						<?php } ?>
					</div>

				</div>
				<!--底部-->
				<script>
					
					$('.am-btn').mouseover(function(){
	               		var res1 =$('#sheng').children('option:selected').html();
	               		var res2=$('#shi').children('option:selected').html();
	               		var res3=$('#qu').children('option:selected').html();
						$('#addr1').val(res1);
						$('#addr2').val(res2);
						$('#addr3').val(res3);
					});

				</script>
@endsection
